<template>
  <div>
    <tab-bar>
      <tab-bar-item path="/home">
        <img src="~@/assets/img/tabBar/home.svg" alt="" slot="item-icon">
        <img src="~@/assets/img/tabBar/home_active.svg" alt="" slot="item-icon-active">
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/category">
        <img src="~@/assets/img/tabBar/category.svg" alt="" slot="item-icon">
        <img src="~@/assets/img/tabBar/category_active.svg" alt="" slot="item-icon-active">
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/shoppingCart">
        <img src="~@/assets/img/tabBar/shoppingCart.svg" alt="" slot="item-icon">
        <img src="~@/assets/img/tabBar/shoppingCart_active.svg" alt="" slot="item-icon-active">
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/profile">
        <img src="~@/assets/img/tabBar/profile.svg" alt="" slot="item-icon">
        <img src="~@/assets/img/tabBar/profile_active.svg" alt="" slot="item-icon-active">
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>
import TabBar from "@/components/component/tabBar/TabBar";
import TabBarItem from "@/components/component/tabBar/TabBarItem";

export default {
  name: "UseTabBar",
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style scoped>

</style>